package Logic.CustomerLogic;

import java.rmi.RemoteException;
import java.util.ArrayList;

import Po.Order;
import Start.CustomerMain;

public class OrderManager {

	ArrayList<Order> orderList ;
	int id;

	public ArrayList<Order> getOrderList(){
		if(orderList == null)
			try {
				orderList=CustomerMain.getCustomerServer().getOrderList(id);
				if(orderList==null)
					orderList=new ArrayList<>();
			} catch (RemoteException e) {
				e.printStackTrace();
			}
		return orderList;
	}
	
}
